home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat5 / wstat.z / wstat
Encoding:
Text File  |  2002-10-03  |  4.2 KB  |  67 lines

  1.  
  2.  
  3.  
  4. wwwwssssttttaaaatttt((((5555))))                                                              wwwwssssttttaaaatttt((((5555))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      _wwww_ssss_tttt_aaaa_tttt - wait status
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_wwww_aaaa_iiii_tttt_...._hhhh_>>>>
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      When a process waits for status from its children via either the _wwww_aaaa_iiii_tttt or
  16.      _wwww_aaaa_iiii_tttt_pppp_iiii_dddd function, the status returned may be evaluated with the following
  17.      macros, defined in _ssss_yyyy_ssss_////_wwww_aaaa_iiii_tttt_...._hhhh.  These macros evaluate to integral
  18.      expressions.  The _s_t_a_t argument to these macros is the integer value
  19.      returned from _wwww_aaaa_iiii_tttt or _wwww_aaaa_iiii_tttt_pppp_iiii_dddd.
  20.  
  21.      _WWWW_IIII_FFFF_EEEE_XXXX_IIII_TTTT_EEEE_DDDD_((((_s_t_a_t_))))     Evaluates to a non-zero value if status was returned
  22.                          for a child process that terminated normally.
  23.  
  24.      _WWWW_EEEE_XXXX_IIII_TTTT_SSSS_TTTT_AAAA_TTTT_UUUU_SSSS_((((_s_t_a_t_))))   If the value of _WWWW_IIII_FFFF_EEEE_XXXX_IIII_TTTT_EEEE_DDDD_((((_s_t_a_t_)))) is non-zero, this
  25.                          macro evaluates to the exit code that the child
  26.                          process passed to ______eeee_xxxx_iiii_tttt or _eeee_xxxx_iiii_tttt, or the value that
  27.                          the child process returned from _mmmm_aaaa_iiii_nnnn.
  28.  
  29.      _WWWW_IIII_FFFF_SSSS_IIII_GGGG_NNNN_AAAA_LLLL_EEEE_DDDD_((((_s_t_a_t_))))   Evaluates to a non-zero value if status was returned
  30.                          for a child process that terminated due to the
  31.                          receipt of a signal.
  32.  
  33.      _WWWW_TTTT_EEEE_RRRR_MMMM_SSSS_IIII_GGGG_((((_s_t_a_t_))))      If the value of _WWWW_IIII_FFFF_SSSS_IIII_GGGG_NNNN_AAAA_LLLL_EEEE_DDDD_((((_s_t_a_t_)))) is non-zero, this
  34.                          macro evaluates to the number of the signal that
  35.                          caused the termination of the child process.
  36.  
  37.      _WWWW_IIII_FFFF_SSSS_TTTT_OOOO_PPPP_PPPP_EEEE_DDDD_((((_s_t_a_t_))))    Evaluates to a non-zero value if status was returned
  38.                          for a child process that is currently stopped.
  39.  
  40.      _WWWW_SSSS_TTTT_OOOO_PPPP_SSSS_IIII_GGGG_((((_s_t_a_t_))))      If the value of _WWWW_IIII_FFFF_SSSS_TTTT_OOOO_PPPP_PPPP_EEEE_DDDD_((((_s_t_a_t_)))) is non-zero, this
  41.                          macro evaluates to the number of the signal that
  42.                          caused the child process to stop.
  43.  
  44.      _WWWW_IIII_FFFF_CCCC_OOOO_NNNN_TTTT_IIII_NNNN_UUUU_EEEE_DDDD_((((_s_t_a_t_))))  Evaluates to a non-zero value if status was returned
  45.                          for a child process that has continued.
  46.  
  47.      _WWWW_CCCC_OOOO_RRRR_EEEE_DDDD_UUUU_MMMM_PPPP(_s_t_a_t_))))     If the value of _WWWW_IIII_FFFF_SSSS_IIII_GGGG_NNNN_AAAA_LLLL_EEEE_DDDD_((((_s_t_a_t_)))) is non-zero, this
  48.                          macro evaluates to a non-zero value if a core image
  49.                          of the terminated child was created.
  50.  
  51. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  52.      exit(2), wait(2), waitpid(2)
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.